<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Country extends Model
{
    public function posts()
    {
        return $this->hasManyThrough(Post::class, User::class);
        // All Params
        // $this->hasManyThrough(Post::class, User::class, 'country_id', 'user_id', 'id');
    }
}
